package com.iscas.tech.vo;

import com.alibaba.fastjson.JSON;
import com.iscas.tech.entity.AtScideman;
import com.iscas.tech.entity.AtScitegach;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.text.StringEscapeUtils;

import java.util.Date;
import java.util.List;

public class MdWithTechNeeds {
    @ApiModelProperty("主键ID")
    private Integer id;

    @ApiModelProperty("需求名称")
    private String sdTitle;

    @ApiModelProperty("需求主体（单位或者个人）")
    private String sdSubject;

    @ApiModelProperty("需求简介")
    private String sdDetail;

    @ApiModelProperty("投资预算")
    private String sdInvest;

    @ApiModelProperty("联系人")
    private String ctPeople;

    @ApiModelProperty("联系电话")
    private String ctTel;

    @ApiModelProperty("联系邮箱")
    private String ctEmail;

    @ApiModelProperty("所在区域")
    private String sdArea;

    @ApiModelProperty("发布人id（对应表3的人员id）")
    private Integer sdResId;

    @ApiModelProperty("发布时间")
    private Date sdResTime;

    @ApiModelProperty("创建人")
    private Integer createTitle;

    private List<Tag> tagList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSdTitle() {
        return StringEscapeUtils.unescapeHtml4(sdTitle);
    }

    public void setSdTitle(String sdTitle) {
        this.sdTitle = sdTitle;
    }

    public String getSdSubject() {
        return sdSubject;
    }

    public void setSdSubject(String sdSubject) {
        this.sdSubject = sdSubject;
    }

    public String getSdDetail() {
        return StringEscapeUtils.unescapeHtml4(sdDetail);
    }

    public void setSdDetail(String sdDetail) {
        this.sdDetail = sdDetail;
    }

    public String getSdInvest() {
        return sdInvest;
    }

    public void setSdInvest(String sdInvest) {
        this.sdInvest = sdInvest;
    }

    public String getCtPeople() {
        return ctPeople;
    }

    public void setCtPeople(String ctPeople) {
        this.ctPeople = ctPeople;
    }

    public String getCtTel() {
        return ctTel;
    }

    public void setCtTel(String ctTel) {
        this.ctTel = ctTel;
    }

    public String getCtEmail() {
        return ctEmail;
    }

    public void setCtEmail(String ctEmail) {
        this.ctEmail = ctEmail;
    }

    public String getSdArea() {
        return sdArea;
    }

    public void setSdArea(String sdArea) {
        this.sdArea = sdArea;
    }

    public Integer getSdResId() {
        return sdResId;
    }

    public void setSdResId(Integer sdResId) {
        this.sdResId = sdResId;
    }

    public Date getSdResTime() {
        return sdResTime;
    }

    public void setSdResTime(Date sdResTime) {
        this.sdResTime = sdResTime;
    }

    public Integer getCreateTitle() {
        return createTitle;
    }

    public void setCreateTitle(Integer createTitle) {
        this.createTitle = createTitle;
    }

    public List<Tag> getTagList() {
        return tagList;
    }

    public void setTagList(List<Tag> tagList) {
        this.tagList = tagList;
    }

    public AtScideman transform() {
        AtScideman techNeeds = new AtScideman();
        techNeeds.setId(getId());
        techNeeds.setSdTitle(getSdTitle());
        techNeeds.setSdSubject(getSdSubject());
        techNeeds.setSdDetail(getSdDetail());
        techNeeds.setSdInvest(getSdInvest());
        techNeeds.setCtPeople(getCtPeople());
        techNeeds.setCtTel(getCtTel());
        techNeeds.setCtEmail(getCtEmail());
        techNeeds.setSdArea(getSdArea());
        techNeeds.setSdResid(getSdResId());
        techNeeds.setSdRestime(getSdResTime());
        techNeeds.setCreatetitle(getCreateTitle());
        return techNeeds;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
